﻿using System;
using System.Collections.Generic;
using Acaweb.Data.Contracts;
using Acaweb.Model.Entities;
using Acaweb.Model.Entities.DatosCompuestos;
using Spring.Transaction.Interceptor;
using System.Linq.Expressions;

namespace Acaweb.Data.Dao.NHibernate
{
    public class CamposFormulariosDao : HibernateDao<CamposFormulario, int>, ICamposFormulariosDao
    {
        public IList<CamposFormulario> GetByTipoFormulario(int TipoFormulario)
        {
            return this.Session.QueryOver<CamposFormulario>().Where(t => t.TipoFormulario == TipoFormulario).List();
        }

        public IList<CamposFormulario> GetAll()
        {
            return this.GetAll<CamposFormulario>();
        }
    }
}